﻿/*
* edirauth - http://edirauth.codeplex.com
* A .NET library and utility for authenticating to eDirectory
* Copyright (c) 2013 Matt Shirilla (http://shirilla.com)
* Licensed under the Microsoft Public License (MS-RL)
* http://edirauth.codeplex.com/license
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace edirAuth
{
    public class ResultCodes
    {
        public const int UNSET_CODE = -99999999;
        public const string UNSET_DESC = "unset";

        public const int OK = 0;
        public const string OK_DESC = "OK";
        public const string OK_PASSWORD_OKAY = "password matched";
        public const string OK_LOGINDISABLED_FALSE = "loginDisabled=false";
        public const string OK_LOGINDISABLED_NOTPRESENT = "loginDisabled attribute is not present";
        public const string OK_INTRUDERLOCKED_FALSE = "lockedByIntruder=false";
        public const string OK_INTRUDERLOCKED_NOTPRESENT = "lockedByIntruder is not present";
        public const string OK_EXPIRED_FALSE = "loginExpirationTime<now";
        public const string OK_EXPIRED_NOTPRESENT = "loginExpirationTime is not present";

        public const int NON_LDAP_ERR = -1;
        public const string NON_LDAP_ERR_DESC = "non-LDAP error> ";

        public const int BAD_PASS = -2;
        public const string BAD_PASS_DESC = "The password did not match";
        
        public const int LOGINDISABLED_TRUE = -3;
        public const string LOGINDISABLED_TRUE_DESC = "The account is loginDisabled.";
        
        public const int INTRUDERLOCKOUT_TRUE = -4;
        public const string INTRUDERLOCKOUT_TRUE_DESC = "The account is locked by intruder.";
        
        public const int EXPIRED = -5;
        public const string EXPIRED_DESC = "The account is expired";
        
        public const int NO_RESULTS = -6;
        public const string NO_RESULTS_DESC = "There were no results.";

    }//class
}//namespace
